package com.zky.common.constant;

/**
 * @Description 采购单状态
 * @Author 张开源
 * @Date 2022/10/4 21:39
 * @Version 1.0
 **/
public interface WareConstant {
    enum PurchaseEnum {
        CREATED(0, "新建"),
        ASSIGNE(1, "已分配"),
        RECEIVE(2, "已领取"),
        FINISH(3, "已完成"),
        ERR(4, "有异常");

        private final int code;
        private final String msg;

        PurchaseEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return this.code;
        }

        public String getMsg() {
            return this.msg;
        }
    }

    enum PurchaseDetailEnum {
        CREATED(0, "新建"),
        ASSIGNE(1, "已分配"),
        BUYING(2, "正在采购"),
        FINISH(3, "已完成"),
        FAIL(4, "采购失败");

        private final int code;
        private final String msg;

        PurchaseDetailEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return this.code;
        }

        public String getMsg() {
            return this.msg;
        }
    }
}
